INTERNAL CSS

AKASH E



Internal CSS

The internal stylesheet is used to apply unique styles to a single document. It is defined within the <style> tag inside the <head> section of the HTML page.

Example

<!DOCTYPE html>
<html>
<head>
<style>
 body {
 background-color: red;
 }
 h1 {
   color: blue;
   margin-left: 70px;
}
</style>
</head>
<body>
<h1>This heading has an internal stylesheet applied.</h1>
<p>This paragraph is not affected.</p>
</body>
</html>

Output



Tags
Our website uses cookies to enhance your experience. Learn More
Accept !

GocourseAI

close
send